<!DOCTYPE html>
<html class=" js flexbox canvas canvastext webgl touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths" lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <link rel="stylesheet" type="text/css" href="ycapp/mui.css">
    <link rel="stylesheet" href="ycapp/reset.css">
    <link rel="stylesheet" href="ycapp/mycss.css">
    <link rel="stylesheet" href="ycapp/style.css" media="screen" type="text/css">
    <title>下载扬尘App管理版</title>
</head>
<body style="background: white;">
<div style="margin-left: 5%;margin-right: 5%;margin-top: 5%;">
    <h2 style="color: #333;margin-bottom: 3%;font-size:20px">上海扬尘管理版</h2>
    <span id="version" style="color: #999;margin-top: 3%;font-size: 15px">版本：1.31 / 大小：3.7MB / 2017-11-29</span>
</div>
<hr style="height:1px;border:none;border-top:1px solid #ccc;;margin-top: 5%">

<div id="tips" style="display: none; background: #d7ebff; margin-left: 5%;margin-right: 5%;margin-top:5%;height: 100px">
    <h3 style="height: 10px;"></h3>
    <p style="color:#333;font-size: 18px" align="justify"><span><img src="ycapp/tip.png" style="width: 15px;height: 15px;margin-right: 5px;margin-left:2%"></span><span>温馨提示</span></p>
    <p id="tipstext" style="color: #333;margin: 2%;font-size: 15px;line-height: 22px" align="left">请点击右上角按钮，然后在弹出的菜单中，点击在Safari中打开，即可安装</p>
</div>

<div style="margin-left: 5%;margin-right: 5%;margin-top:2%;margin-bottom:3%;height: 100px;clear: both">
    <img src="ycapp/app.png" style="width: 100px;height:100px" align="middle">
</div>

<div style="width: 120px;height: 40px;margin: 0 auto;background: white;text-align: center">
    <button onclick="leftmenu()" style=" width: 120px;height: 40px" class="mui-btn mui-btn-success">点击安装</button>
</div>

<div id="iostype" style="display: none;margin: 0 auto;background: white">
    <button style="margin-top: 2%" type="button" class="mui-btn mui-btn-primary">适用于iOS设备</button>
    <button style="margin-top: 2%" type="button" class="mui-btn mui-btn-danger">企业版</button>
    <p style="margin-top: 4%; color: #00b181;font-size: 15px">适用于iOS 8.0及以上版本</p>
    <p id="download" style="margin-top: 2%; color: #00b181;font-size: 15px;display: none">注意：点击安装后，请按Home键在桌面查看</p>
    <hr style="height:1px;border:none;border-top:1px solid #ccc;;margin-top:5%">
</div>



<div style="background: #f1f1f1; margin-left: 5%;margin-right: 5%;margin-top:4%;height: 100px">
    <h3 style="height: 10px;"></h3>
    <p style="color:#333;font-size: 18px" align="justify"><span><img src="ycapp/shuoming.png" style="width: 15px;height: 15px;margin-right: 5px;margin-left:2%"></span><span>更新说明</span></p>
    <p style="color: #333;margin: 2%;font-size: 15px;line-height: 22px" align="left">完善界面显示</p>
</div>
<hr style="height:1px;border:none;border-top:1px solid #ccc;;margin-top: 5%">

<script src="ycapp/mui.js"></script>
<script src="ycapp/jquery.js"></script>
<script src="ycapp/snap.js"></script>
<script src="ycapp/index.js"></script>
<script src="ycapp/modernizr.js"></script>
<script type="text/javascript">
    var ua = navigator.userAgent;
    var ipad = ua.match(/(iPad).*OS\s([\d_]+)/),
            isIphone = ua.match(/(iPhone\sOS)\s([\d_]+)/),
            isIpod = ua.match(/iPod/i),
            isAndroid = ua.match(/(Android)\s+([\d.]+)/);

    if(isIphone) {
        $('#version').html("版本：1.0.9 / 大小：8.2MB / 2017-11-29");
        document.getElementById("iostype").style.display="block";
    }else if(ipad){
        $('#version').html("版本：1.0.9 / 大小：8.2MB / 2017-11-29");
        document.getElementById("iostype").style.display="block";
    }else if(isIpod){
        $('#version').html("版本：1.0.9 / 大小：8.2MB / 2017-11-29");
        document.getElementById("iostype").style.display="block";
    }

    if( is_weixin()||is_mobileQQ()){
        if(isAndroid){
            $('#tipstext').html("请点击右上角按钮，然后在弹出的菜单中，点击在浏览器中打开，即可安装");
        }
        document.getElementById("tips").style.display="block";
    }

    function leftmenu()
    {
        var c=document.getElementById("download");
        var isWeixin = is_weixin();

        if(isWeixin||is_mobileQQ()){
            if(isAndroid){
                alert('请点击右上角按钮，然后在弹出的菜单中，点击在浏览器中打开，即可安装。');
            }else{
                alert('请点击右上角按钮，然后在弹出的菜单中，点击在Safari中打开，即可安装。');
            }

        }else if(isIphone) {
            window.location.href="itms-services://?action=download-manifest&url=https://harveyhu.gitee.io/yc/manifest.plist";
            c.style.display="block";
        }else if(ipad){
            window.location.href="itms-services://?action=download-manifest&url=https://harveyhu.gitee.io/yc/manifest.plist";
            c.style.display="block";
        }else if(isIpod){
            window.location.href="itms-services://?action=download-manifest&url=https://harveyhu.gitee.io/yc/manifest.plist";
            c.style.display="block";
        } else if(isAndroid){
            window.location.href="http://112.64.17.58:6080/uploadapk/Yangchenpro.apk";
        }
    }
    function is_weixin() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger") {
            return true;
        } else {
            return false;
        }
    }
    function is_mobileQQ() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/\sQQ/i) == " qq") {
            return true;
        } else {
            return false;
        }
    }
</script>

</body></html>